package com.group.transaction.mapper;

import org.apache.ibatis.annotations.Param;

import com.group.transaction.domain.Integral;
import tk.mybatis.mapper.common.Mapper;

/**
 * 可用积分数据访问层
 *
 * @author YunXing Pang
 * @date 2020/4/27
 */
public interface IntegralMapper extends Mapper<Integral> {

    /**
     * 通过 用户id 获取 可用积分
     *
     * @param userId 用户id
     * @return 可用积分对象
     */
    Integral findFirstByUserId(@Param("userId") Long userId);

}